package com.gxa.www.cl.controller;

import com.gxa.www.cl.service.EnterLibraryService;
import com.gxa.www.cl.service.ExitLibraryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/api")
public class ExitLibraryController {
    @Autowired
    private ExitLibraryService exitLibraryService;
    @GetMapping("/getExitLibraryData")
    public Map<String, Object> getExitLibraryData() {
        Map<String, Object> response = new HashMap<>();
        response.put("code", 0);
        response.put("data", exitLibraryService.getExitLibraryData());
        return response;
    }
}
